How To Calculate Time Intervals.